<?php
/**
 * ExtContainer class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtContainer extends ExtContainerBase
{
    /**
     * Gets the value of ExtJS autoDestroy property
     * @return Boolean 
     */
    public function getAutoDestroy()
    {
    	return $this->getConfig("autodestroy");
    }

    /**
     * Sets the value of ExtJS autoDestroy property
     * @param Boolean $value 
     */
    public function setAutoDestroy($value)
    {
    	$this->setConfig("autodestroy",$value);
    }

    /**
     * Gets the value of ExtJS bufferResize property
     * @return Boolean/Number 
     */
    public function getBufferResize()
    {
    	return $this->getConfig("bufferresize");
    }

    /**
     * Sets the value of ExtJS bufferResize property
     * @param Boolean/Number $value 
     */
    public function setBufferResize($value)
    {
    	$this->setConfig("bufferresize",$value);
    }

    /**
     * Gets the value of ExtJS forceLayout property
     * @return Boolean 
     */
    public function getForceLayout()
    {
    	return $this->getConfig("forcelayout");
    }

    /**
     * Sets the value of ExtJS forceLayout property
     * @param Boolean $value 
     */
    public function setForceLayout($value)
    {
    	$this->setConfig("forcelayout",$value);
    }

    /**
     * Gets the value of ExtJS hideBorders property
     * @return Boolean 
     */
    public function getHideBorders()
    {
    	return $this->getConfig("hideborders");
    }

    /**
     * Sets the value of ExtJS hideBorders property
     * @param Boolean $value 
     */
    public function setHideBorders($value)
    {
    	$this->setConfig("hideborders",$value);
    }

    /**
     * Gets the value of ExtJS monitorResize property
     * @return Boolean 
     */
    public function getMonitorResize()
    {
    	return $this->getConfig("monitorresize");
    }

    /**
     * Sets the value of ExtJS monitorResize property
     * @param Boolean $value 
     */
    public function setMonitorResize($value)
    {
    	$this->setConfig("monitorresize",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'autodestroy' => 'autoDestroy',
            'bufferresize' => 'bufferResize',
            'forcelayout' => 'forceLayout',
            'hideborders' => 'hideBorders',
            'monitorresize' => 'monitorResize'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'add' => array('sender','component','index'),
            'afterlayout' => array('sender','layout'),
            'beforeadd' => array('sender','component','index'),
            'beforeremove' => array('sender','component'),
            'remove' => array('sender','component')
        ));


        $this->setXType('container');
        $this->setXClass('Ext.Container');
    }    
}
?>